<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>九九乘法表</title>
</head>
<body>

</body>
<script>
    document.write("<table border='1' cellpadding='0' width='50%' align='center'>");
    for (let i = 1; i <=9; i++) {
        document.write("<tr>")
        for (let j = 1; j <=i; j++) {
            document.write("<td>");
            // document.write(1)
            document.write(j+"*"+i+"="+i*j);
            document.write("</td>");
        }
        document.write("/<tr>");
    }
    document.write("</table>");
/*
    for (let i = 1;i <= 9;i++){
        for (let j = 1; j <=i; j++) {
            document.write(i+"*"+j+"="+i*j);
        }
        document.write("<br>");
    }*/
</script>
</html>